package com.xingzhe.pengji.security.services;

import java.util.List;

import org.springframework.security.core.GrantedAuthority;

/**
 * @Title ： 三江学院 毕业设计
 * @Description ：
 * @author ：LuFengLiang
 * @Company: IT行者工作室
 * @Copyright: Copyright (c) 2012-2-24
 * @version ： 1.0
 * @param <T>
 */
public interface UserService<T>
{

    public List<T> queryForPageUserList(T entity, String sortByColumn, int pageSize, int pageNumber, boolean sortAsc);

    public void saveUser(T entity);

    public void updateUser(T entity);

    public int getItemCount(T entity);

    public void delUser(T entity);

    public T getUserByAccount(T entity);
    
    public T getUserByAccount(String account);

    public T getUserById(T entity);
    
    public T judgeEmialExit(T entity);

    public List<GrantedAuthority> loadUserAuthoritiesByName(String userName);
}
